<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>My JSP 'index.jsp' starting page</title>
	<script>
	function click(){
	alert("1");
		$("#tab").append("<tr></tr>")
				 .append("<td>"+"agagaf"+"</td>")
				 .append("<td>"+"agagaf"+"</td>")
				 .append("<td>"+"<input type='text' name='desc' />"+"</td>")
				 .append("<td>"+"afdafda"+"</td>");
		}
	</script>
  </head>
  
  <body>
    <table id="tab" border="1">

		<tr>

			<td width="20%">序号</td>
			<td>标题</td>
			<td>描述</td>
			<td>操作</td>
		</tr>

	</table>
	<button onclick="click()">添加</button>
  </body>
</html>
